export type ListRequest ={
  page: number,
  size: number,
  client_id?: number,
  start_time?: number,
  end_time?: number,
}

export type AddRequest ={
  id:number,//客户id
  client_id?: number,//客户
  client_name: string,//客户
  numbering: string,//编号
  has_tax: boolean,//是否含税
  tax: number,//税率(%)
  date: number,//出库日期
  total?: number,//总金额（返回数据）
  list: AddProduct[], //产品列表
}

export type AddProduct = {
  product_id: number,//产品id
  product_name: string,//产品品名
  product_model: string,//产品型号
  product_specs: string,//产品规格
  count: number,//产品数量（千克）
  price: number,//产品单价(元)
}

//出库单汇总数据
export type StockOutSummary = {
  today: StockOutSummaryItem,
  week: StockOutSummaryItem,
  month: StockOutSummaryItem,
}

export type StockOutSummaryItem = {
  orders: number, //出库单数量
  count: number,//出库产品重量（件、个）
  total: number,//出库产品总金额（元）
}

export type StockOutDeleteRequest = {
  id: number,
}

//出库单汇总请求
export type SummaryRequest ={
  client_id?: number,
  start_time?: number,
  end_time?: number,
}

export type SummaryResponse = {
  total: StockOutTotal,
  list: StockOutWithDetail[],
}

export type StockOutTotal = {
  orders: number,//出库单数量
  count: number,//出库产品总数量（件、个）
  total: number,//出库产品总金额（元）
}

export type StockOutWithDetail = {
  numbering: string,//编号
  date: number,//出库日期

  id: number, //出库单详情id
  product_id: number,//产品id
  product_name: string,//产品品名
  product_model: string,//产品型号
  product_specs: string,//产品规格
  count: number,//产品数量（千克）
  price: number,//产品单价(元)
}